<template>
  <view class="c-demo-block" :class="custom_class" :style="custom_style">
    <view class="c-demo-block__title">{{ title }}</view>
    <view class="c-demo-block__content">
      <slot></slot>
    </view>
  </view>
</template>

<script>
import componentMixin from '@/uni_modules/s-ui/mixins/componentMixin';
export default {
  name: 'CDemoBlock',
  mixins: [componentMixin],
  props: {
    title: {
      type: String,
      default: '',
    },
  },
};
</script>

<style lang="scss">
.c-demo-block {
  padding-bottom: 30rpx;
  &__title {
    font-size: $font-size-md;
    color: $tips-color;
    padding: 30rpx 0;
  }
  &:last-child {
    padding-bottom: 60rpx;
  }
}
</style>
